﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMvc.IDAL
{
    //添加接口，起约束作用
    public partial interface IDbSession
    {
        IDAL.IUserRepository UserRepository { get; }


        IDAL.IArticleRepository ArticleRepository { get; }

        IDAL.IAboutArticleRepository AboutArticleRepository { get; }


        IDAL.IFileRepository FileRepository { get; }


        IDAL.IAddFileRepository AddFileRepository { get; }

        IDAL.INoteRepository NoteRepository { get; }
        IDAL.IRelationRepository RelationRepository { get; }
        IDAL.ICategoryTypeRepository CategoryTypeRepository { get; }

        //IDAL.IOfficeRepository OfficeRepository { get; }

        int SaveChanges();

        int ExcuteSql(string strSql, DbParameter[] parameters);
    }
}
